<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0 user-scalable=no">
    <title>芳小微宣</title>
    <link rel="stylesheet" href="css/index.css">
    <script src="js/jquery.min.js"> </script>
    <script src="js/index.js"></script>
    <style>
        iframe{
            border: 0;
        }
        .titleName{
            text-align: center;
            font-size: 5.2rem;
        /* margin-top: 10px; */
            border-bottom: 1px solid #cccccc;
            height: 50px;
            line-height: 50px;
        }
    </style>
</head>
<body>
<div class="weui_cells_title">基地详情</div>
<div class="titleName"></div>
<div class="contentMain" style="font-size: 4.5rem;margin: 12px;margin-bottom: 52px;">
</div>
<div class="photo_subCon" onclick="subInfo()">
   预约
</div>
<script>

    $.ajax({
        type : "POST",
        url : path + "/api/weixin/getEduBaseById",
        data : {
            "token" : window.localStorage.getItem("token"),
            "id" : getParam("id")
        },
        dataType : 'json',
        success : function(msg) {
            if(msg.code == 0){
                $(".titleName").html(msg.eduInfo.eduName);
                $(".contentMain").html(msg.eduInfo.eduIntroduce);
                $(".contentMain img").css("width","100%");
                $(".photo_subCon").click(function(){
                    window.location.href = "jdyy.html?id=" + getParam("id") + "&eduname=" + msg.eduInfo.eduName;
                });
            }else if(msg.code == 501){
                window.location.href = "login.html";
            }
        }
    });
</script>
</body>
</html>